<?php

/*
Classe dont derive toutes les entites ->permet principalement de factoriser l'identifiant des differentes entites  
*/
class Entite {
	 

	 protected $id;
	
	public function __construct (){
	
		$this->setId(-1);
	}
	public function isNew()
	{
            return empty($this->id);
    }
    
	 public function getId()
     {
            return $this->id;
     }
	 public function setId($id)
     {
	 
            $this->id = (int) $id;
     }
	
}



?>